{include file="header.html"}
{include file="title.html"}
<script type="text/javascript">
    $(function() {
        $('#find_password_form').validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td');
                error_td.find('.field_notice').hide();
                error_td.append(error);
            },
            success: function(label) {
                label.addClass('validate_right').text('OK!');
            },
            rules: {
                username: {
                    required: true
                },
                email: {
                    required: true,
                    email: true
                },
                captcha: {
                    required: true,
                    remote: {
                        url: 'index.php?app=captcha&act=check_captcha',
                        type: 'get',
                        data: {
                            captcha: function() {
                                return $('#captcha1').val();
                            }
                        }
                    }
                }
            },
            messages: {
                username: {
                    required: '{$lang.username_required}'
                },
                email: {
                    required: '{$lang.email_required}',
                    email: '{$lang.email_error}'
                },
                captcha: {
                    required: '{$lang.captcha_required}',
                    remote: '{$lang.captcha_error}'
                }
            }
        });
    });
</script>


<!-----登录--------->
<div class="login_panel" >
    <form class="login_box" id="find_password_form" method="post">
        <table  width="100%">
            <tr>
                <td> <input placeholder="{$lang.your_username}" type="text" name="username" id="username" class="text">
                    <label class="field_notice"></label></td>
            </tr>
            <tr>
                <td> <input placeholder="{$lang.your_email}" type="text" name="email" id="email" class="text">
                    <label class="field_notice"></label></td>
            </tr>
            <tr>
                <td class="relative"><input placeholder="{$lang.captcha}" type="text" name="captcha" class="text" id="captcha1" />
                    <a href="javascript:change_captcha($('#captcha'));" class="renewedly"><img id="captcha" src="index.php?app=captcha&amp;{$random_number}" /></a>
                    <label class="field_notice"></label>
                </td>
            </tr>

            <tr>
                <td>
                    <input  value="{$lang.Mail_back}"  type="submit" class="red_btn">
                </td>
            </tr>
        </table>
        <input type="hidden" name="ret_url" value="{$ret_url}" />
        <p><a href="{url app=member&act=login&ret_url=$ret_url}" >{$lang.shell}</a><a href="index.php?app=find_password&act=mobile" class="fr">{$lang.find_back}</a></p>
    </form>
</div>


{include file="footer.html"}